import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        // 同学一 :Lisi
        String stu1 = scanner.nextLine();    //采用  scanner.nextLine()读取一行数据
        String[] str1 = stu1.split(",");  // 利用字符串的“分割字符串”方法split(","),以逗号为分分割内容
        int number1 = Integer.parseInt(str1[0]);  // 调用包装类Integer的parseInt（）方法,将字符串数组中的某个字符串转换为int类型
        String name1 = str1[1];
        double englishScore1 = Double.parseDouble(str1[2]) ;// 调用包装类Double的parseDouble（）方法,将字符串数组中的某个字符串转换为double 类型.
        double mathScore1 = Double.parseDouble(str1[3]) ;
        double computerScore1 = Double.parseDouble(str1[4]) ;
        Student Lisi = new Student(number1,name1,englishScore1,mathScore1,computerScore1);
        // 同学二:Zhaoliu
        String stu2 = scanner.nextLine();
        String[] str2 = stu2.split(",");
        int number2 = Integer.parseInt(str2[0]);
        String name2 = str2[1];
        double englishScore2 = Double.parseDouble(str2[2]) ;
        double mathScore2 = Double.parseDouble(str2[3]) ;
        double computerScore2 = Double.parseDouble(str2[4]) ;
        Student Zhaoliu = new Student(number2,name2,englishScore2,mathScore2,computerScore2);
        // 同学三:Zhangsan
        String stu3 = scanner.nextLine();
        String[] str3 = stu3.split(",");
        int number3 = Integer.parseInt(str1[0]);
        String name3 = str3[1];
        double englishScore3 = Double.parseDouble(str3[2]) ;
        double mathScore3 = Double.parseDouble(str3[3]) ;
        double computerScore3 = Double.parseDouble(str3[4]) ;
        String responsibility3 = str3[5];
        StudentXW Zhangsan = new StudentXW(number3,name3,englishScore3,mathScore3,computerScore3,responsibility3);
        // 同学四:Wangwu
        String stu4 = scanner.nextLine();
        String[] str4 = stu4.split(",");
        int number4 = Integer.parseInt(str4[0]);
        String name4 = str4[1];
        double englishScore4 = Double.parseDouble(str4[2]) ;
        double mathScore4 = Double.parseDouble(str4[3]) ;
        double computerScore4 = Double.parseDouble(str4[4]) ;
        String responsibility4 = str4[5];
        StudentBZ Wangwu = new StudentBZ(number4,name4,englishScore4,mathScore4,computerScore4,responsibility4);
        // 输出这四位同学的评测成绩
        System.out.println(Lisi.getName()+"'s evaluation score is "+Lisi.testScore());
        System.out.println(Zhangsan.getName()+"'s evaluation score is "+Zhangsan.testScore());
        System.out.println(Wangwu.getName()+"'s evaluation score is "+Wangwu.testScore());
        System.out.println(Zhaoliu.getName()+"'s evaluation score is "+Zhaoliu.testScore());
        System.out.println();
        // 两两同学的总成绩之间进行比较
        Zhangsan.compare(Lisi);
        Zhangsan.compare(Wangwu);
        Lisi.compare(Zhaoliu);
    }
}
